package cn.community.system.mapper;

import cn.community.system.domain.Device;
import cn.community.system.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Device record);

    Device selectByPrimaryKey(Long id);

    List<Device> selectAll();

    int updateByPrimaryKey(Device record);

    List<Device> selectForList(QueryObject qo);

    void decreateNumber(@Param("id") Long id, @Param("number")Integer number);

    void increateNumber(@Param("id") Long id, @Param("number")Integer number);

    Device listByName(String deviceName);

}